package com.itany.nmms.service;

import com.github.pagehelper.PageInfo;
import com.itany.nmms.entity.Staff;
import com.itany.nmms.exception.CodeErrorException;
import com.itany.nmms.exception.MD5ErrorException;
import com.itany.nmms.exception.RequestParameterErrorException;
import com.itany.nmms.exception.StaffNotExistException;

/**
 * @author 黄衡熙
 * @version 1.0
 */
public interface StaffService {
    /**
     * 员工登录
     * @param loginName
     * @param password
     * @param role
     * @param code
     * @param image
     * @return
     * @throws RequestParameterErrorException
     * @throws CodeErrorException
     * @throws StaffNotExistException
     * @throws MD5ErrorException
     */
    Staff login(String loginName,String password,String role,String code,String image) throws RequestParameterErrorException, CodeErrorException, StaffNotExistException, MD5ErrorException;

    /**
     * 条件查询
     * @param staffParam
     * @param pageNo
     * @param pageSize
     * @return
     */
    PageInfo<Staff> findByParams(Staff staffParam,String pageNo,String pageSize);
}
